package com.acme.task2;

public class Foo {
    int iterNum;

    public Foo(int num) {
        iterNum = num;
    }

	@Override
	protected void finalize() throws Throwable {
        System.out.println(String.format("Foo from iteration %s was finalized", iterNum));
		super.finalize();
	}
}
